﻿@model IEnumerable<DAEProde.Domain.Tournament>

@{
    ViewBag.Title = "Index";
    Layout = "~/Views/Shared/_Layout.cshtml";
}

<h2>Seleccione un Torneo</h2>

<table>
    <tr>
        <th>
            Nombre Torneo
        </th>
        <th></th>
    </tr>

    @foreach (var item in Model) {
        <tr>
            <td>
                @item.Name
            </td>
            <td>
                @Html.ActionLink("Tabla General", "ViewTournamentResults", new { id = item.Id }) |
                @Html.ActionLink("Tabla Por Fecha", "ViewMatchDateResults", new { id = item.Id, fId = 0 })
            </td>
        </tr>
    }
</table>